//编写一个函数，不用临时变量，直接交换numbers = [a, b]中a与b的值。
//
//示例：
//输入: numbers = [1,2]
//输出: [2,1]

package main

import (
	"fmt"
)

func swapNumbers(numbers []int) []int {
	numbers = append(numbers[1:], numbers[:1]...)
	return numbers
}

func main() {
	numbers := []int{1,2}
	res := swapNumbers(numbers)
	fmt.Println(res)
}
